//
//  GKNetworkTool.swift
//  MicroBlogFunc
//
//  Created by GK on 16/4/9.
//  Copyright © 2016年 GK. All rights reserved.
//

import UIKit
import AFNetworking


class GKNetworkTool: AFHTTPSessionManager {
    //单例
    static let shareInstance: GKNetworkTool = {
        
        let tool = GKNetworkTool()
        
        //set:元素是无序的,不重复  添加afn的解析类型
        tool.responseSerializer.acceptableContentTypes?.insert("text/plain")
        
        return tool
    }()
}
